<?php
/**
 *前台首页控制器
 */
class IndexController extends PlatformController
{
	/**
	 * 显示首页
	 */
	public function indexAction()
	{
		
		$article=Factory::M('ArticleModel');
		$recommendArt=$article->getRecommendArt(5);
		$this->assign('recommendArt',$recommendArt);
		$master=Factory::M('MasterModel');
		$masterInfo=$master->getMasterInfo();
		$this->assign('masterInfo',$masterInfo);
		$newArt=$article->getNewArt(8);
		$this->assign('newArt',$newArt);
		$hotArtByHits=$article->getHotArtByHits(8);
		$this->assign('hotArtByHits',$hotArtByHits);
		// var_dump($_SESSION);die;
		$this->display('index.html');
	}
} 